import { createRouter, createWebHistory } from 'vue-router'
import HomeView from "../views/HomeViewzxw.vue";
const FenLeiView = import('../views/FenLeiView.vue')
const ZhiDeMaiView = import('../views/ZhiDeMaiView.vue')
const ShopCartView = import('../views/ShopCartView.vue')
const ProfileView = import('../views/ProfileView.vue')
const TuijianView = import('../views/Home/TuiJianViewzxw.vue')
const HomeOthersView = import('../views/Home/HomeOthersViewzxw.vue')
const SearchView = import('../views/SearchView.vue')
const AllNewShopView = import('../views/Home/HomeNav/XinPinShouFa/AllNewShopViewzxw.vue')
const ChaoJiXiaoJinDanView = import('../views/Home/HomeNav/XinPinShouFa/ChaoJiXiaoJinDanViewzxw.vue')
const JinDanZhiJianGuanView = import('../views/Home/HomeNav/XinPinShouFa/JinDanZhiJianGuanViewzxw.vue')
const ShangXinRiLiView = import('../views/Home/HomeNav/XinPinShouFa/ShangXinRiLiViewzxw.vue')
const MeiRiChaoDiView = import('../views/Home/HomeNav/XinPinShouFa/MeiRiChaoDiViewzxw.vue')
const XiaDanView = import('../views/XiaDanView.vue')
const ZaiXianKeFuView = import('../views/ZaiXianKeFuView.vue')
const PayForView = import('../views/PayForView.vue')
const FenLeiXiangQingView = import('../views/fenlei/FenLeiXiangQingView.vue')

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
      {
        path:'/',
        name:'homeview',
        component:HomeView,
          children:[
              {
                  path:'',
                  component:TuijianView
              },
              {
                  path:'homeothers-view',
                  component:HomeOthersView
              }
          ]
      },
      {
        path:'/fenlei-view',
        name:'fenleiview',
        component:FenLeiView,
          children:[
              {
                  path:'xiangqing',
                  component:FenLeiXiangQingView
              }
          ]
      },
      {
        path:'/zhidemai-view',
        name:'zhidemaiview',
        component:ZhiDeMaiView
      },
      {
        path:'/shopcart-view',
        name:'shopcartview',
        component:ShopCartView
      },
      {
        path:'/profile-view',
        name:'profileview',
        component:ProfileView
      },
      {
          path: '/search-view',
          name: 'searchview',
          component: SearchView
      },
      {
          path:'/xinpinshoufa-allnewshop-view',
          name:'allnewshopview',
          component:AllNewShopView
      },
      {
          path:'/xinpinshoufa-chaojixiaojindan-view',
          name:'chaojixiaojindanview',
          component:ChaoJiXiaoJinDanView
      },
      {
          path:'/xinpinshoufa-jiandanzhijiangaun-view',
          name:'jindanzhizhijianguanview',
          component:JinDanZhiJianGuanView
      },
      {
          path:'/xinpinshoufa-shangxinrili-view',
          name:'shangxinriliview',
          component:ShangXinRiLiView
      },
      {
          path:'/xinpinshoufa-meirichaodi-view',
          name:'meirichaodiview',
          component:MeiRiChaoDiView
      },
      {
          path:'/xiadan-view',
          name:'xiadanview',
          component:XiaDanView
      },
      {
          path:'/zaixiankefu-view',
          name:'zaixiankefuview',
          component:ZaiXianKeFuView
      },
      {
          path:'/payfor-view',
          name:'payforview',
          component:PayForView
      },

  ]
})

export default router
